{% extends "base.html" %}
{% from "bootstrap/pagination.html" import render_pagination %}

{% block title %}微博系统 - {{ title }} {{ user.username }}{% endblock %}

{% block page_content %}
    <div class="page-header">
        <h1>{{ title }}</h1>
    </div>
    <table class="table table-hover followers">
        <thead><tr><th>用户</th><th>关注时间</th></tr></thead>
        {% for follow in follows %}
            {% if follow.user != user %}
                <tr>
                    <td>
                        <a href="{{ url_for('.user', username=follow.user.username) }}">
                            <img class="img-rounded" src="{{ follow.user.gravatar(size=32) }}">
                            {{ follow.user.username }}
                        </a>
                    </td>
                    <td>{{ follow.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}</td>
                </tr>
            {% endif %}
        {% endfor %}
    </table>
    <div class="pagination">
        {{ render_pagination(pagination, 'main.followers', username=user.username) }}
    </div>
{% endblock %}
